package com.test.springboot.mapper;

import com.test.springboot.domain.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
	
	/**
	 * 登录业务
	 * @param user 用户对象
	 * @return user
	 */
	User login(User user);
	
	/**
	 * 根据用户ID查询用户信息
	 * @param id 用户ID
	 * @return user
	 */
	User getUser(Integer id);
}
